package com.shse.sale.meta;

import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * Created by shse on 3/19/2016.
 * 商品对应java bean，添加部分非数据库字段属性isBuy、buyTime、buyPrice
 */
public class Content {

    private int id;
    private String title;
    private String image;
    private String detail;
    private int price;
    private String summary;

    /**
     * isBuy, isSell为非数据库字段
     */
    private boolean isBuy = false;
    private boolean isSell = false;

    private Long buyTime;
    private int buyPrice;


    public Long getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Long buyTime) {
        this.buyTime = buyTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(int buyPrice) {
        this.buyPrice = buyPrice;
    }

    public boolean getIsBuy() {
        return isBuy;
    }

    public void setIsBuy(boolean isBuy) {
        this.isBuy = isBuy;
    }

    public boolean getIsSell() {
        return isSell;
    }

    public void setIsSell(boolean isSell) {
        this.isSell = isSell;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
}
